#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    int a = 40, c = 212, sum = 0;
    sum = (-8 + 22)*a - 10 + c/2;
    printf("sum=%d",sum);
    return 0;
}